<%@page import="java.util.Locale"%>
<%@ page language="java" 
	contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/css/common.css">
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.9.1.js"></script>
<script type="text/javascript">
	$(function(){
		$("#loginBtn").click(function(){
			if($("#username").val()==""){
				alert("请输入用户名！");
				return false;
			}
			if($("#password").val()==""){
				alert("请输入密码!");
				return false;
			}
			return true;
			
		});
		
	});
</script>
</head>
<body>

	<div align="center">
		<h3>
			<font color="red">${message}</font>
		</h3>
		<form action="${pageContext.request.contextPath }/login" method="post">
			<table>
				<tr style="background: #00ddaa; height: 30px">
					<td align="center">用户登录</td>
				</tr>
				<tr>
					<td><input class="txt" type="text" placeholder="用户名" id="username" name="username"></td>
				</tr>
				<tr>
					<td><input class="txt" type="password" placeholder="密码" id="password" name="password"></td>
				</tr>
				<tr>
					
					<td><input type="checkbox" name="autologin" value="auto"/>记住我</td>
				</tr>
				<tr background="#020202">
					<td align="center"><input id="loginBtn" class="OperBtn"
						type="submit" value=" 登录 " />&nbsp;&nbsp;&nbsp; <a
						href="${pageContext.request.contextPath}/toregist"> 注册 </a></td>
				</tr>
			</table>
		</form>
		
		<br>
	</div>
</body>
</html>